package com.esteel.settlement;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//@RestController
//@ComponentScan
@EnableCaching
//@EnableAutoConfiguration
@EnableTransactionManagement
@SpringBootApplication
public class Application extends SpringBootServletInitializer{

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(Application.class);
	}
	
	@Value("${dbkk.ss}")
	private String ss;
	


  public static void main(String[] args) {
	  SpringApplication app = new SpringApplication(Application.class);
//	  app.setBanner(new Banner(){
//
//		@Override
//		public void printBanner(Environment environment, Class<?> sourceClass, PrintStream out) {
//			out.println("00000000000000000000000000");
//		}
//		  
//	  });
	  app.run(args);
//    SpringApplication.run(Application.class, args);
  }
}
